import request from '@/utils/request'
export function couponStrategys(query) {
  return request({
    url: '/couponStrategy/strategys',
    method: 'get',
    params: query
  })
}
export function statusStrategys(data) {
  return request({
    url: '/couponStrategy/status',
    method: 'post',
    data
  })
}
export function editStrategys(data) {
  return request({
    url: '/couponStrategy/edit',
    method: 'post',
    data
  })
}
export function saveStrategys(data) {
  return request({
    url: '/couponStrategy/save',
    method: 'post',
    data
  })
}
export function removeStrategys(query) {
  return request({
    url: '/couponStrategy/remove',
    method: 'get',
    params: query
  })
}
export function levelMemberStrategys() {
  return request({
    url: '/couponStrategy/levelMember',
    method: 'get'
  })
}
export function payMemberStrategys() {
  return request({
    url: '/couponStrategy/payMember',
    method: 'get'
  })
}
export function detailsStrategys(query) {
  return request({
    url: '/couponStrategy/details',
    method: 'get',
    params: query
  })
}

export function statisticsStrategys(query) {
  return request({
    url: '/couponStrategy/statistics',
    method: 'get',
    params: query
  })
}
export function usersStrategys(query) {
  return request({
    url: '/couponStrategy/users',
    method: 'get',
    params: query
  })
}
export function giftsList() {
  return request({
    url: '/couponStrategy/gifts',
    method: 'get'
  })
}

export function saveCodeStrategys(data) {
  return request({
    url: '/couponStrategy/saveCode',
    method: 'post',
    data
  })
}
export function grantStrategyExten(data) {
  return request({
    url: '/couponStrategy/grant',
    method: 'post',
    data
  })
}
export function ruleConfigCoupons() {
  return request({
    url: '/couponStrategy/ruleConfigCoupons',
    method: 'get'
  })
}


export function grantLogs(query) {
  return request({
    url: '/couponStrategy/grant-logs',
    method: 'get',
    params: query
  })
}
